package com.summer.core.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class LocalConstants {

	private static Properties props;
	static {
		props = new Properties();
		try {
			props.load(LocalConstants.class.getClassLoader()
					.getResourceAsStream("local.properties"));
		} catch (FileNotFoundException e) {
			throw new RuntimeException("找不到local.properties文件", e);
		} catch (IOException e) {
			throw new RuntimeException("读取local.properties文件出错", e);
		}
	}
	
	public static final class Config {
		
		public static final String RETURN_WEB = props.getProperty("return_web");
		public static final String LOCAL_URL = props.getProperty("local_url");
	}
}
